package com.example.springbootstudy.service;

import com.example.springbootstudy.controller.req.*;
import com.example.springbootstudy.model.Essay;
import com.github.pagehelper.PageInfo;

public interface EssayService {

    PageInfo<Essay> getAllEssay(GetAllEssayPageReq req);

    PageInfo<Essay> getOwnerEssay(GetOwnerEssayReq req);

    Boolean addEssay(AddEssayReq req);

    Boolean privateEssay(UpdateEssayReq req);

    Boolean deleteEssay(DeleteEssayReq req);

    Boolean commentEssay(AddCommentReq req);


}
